<?php
/**
 * 后台全局配置
 */
return [
    ////////
    //用户表//
    ////////
    'user' => [
        //"部署人员", "管理员",
        "role" => [
            "deployer" => 1,
            "manager" => 2,
        ],
        'status' => [
            "active" => 1,
            "ban" => 2,
        ],
    ],
    ////////////
    //项目配置表//
    ///////////
    'project' => [
        //"测试环境", "线上环境",
        'level' => [
            "test" => 1,
            "product" => 2,
        ],
        'status' => [
            "active" => 1,
            "ban" => 2,
        ],
    ],
    ///////////
    //上线单表//
    //////////
    'task' => [
        //"全新上线", "回滚",
        'action' => [
            "new" => 1,
            "rollback" => 2
        ],
        //"新建提交", "上线完成", "上线失败"
        'status' => [
            "new" => 1,
            "complete" => 2,
            "fail" => 3
        ],
        'enable_rollback' => [
            "active" => 1,
            "ban" => 2,
        ],
    ],
    ///////////
    //上线记录表//
    //////////
    'record' => [
        'action' => [
            //服务器权限检查
            "permission" => 24,
            //部署前置触发任务
            "pre_deploy" => 40,
            //本地代码更新
            "clone" => 53,
            //部署后置触发任务
            "post_deploy" => 64,
            //同步代码到服务器
            "sync" => 78,
            //更新完所有目标机器时触发任务，最后一个得是100
            "update_remote" => 100
        ],
    ]
];
